package org.jeecg.chase.modules.adhuser.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.jeecg.chase.modules.adhuser.entity.AdhUser;

/**
 * @Description: 会员管理
 * @Author: jeecg-boot
 * @Date: 2022-02-13
 * @Version: V1.0
 */
public interface AdhUserMapper extends BaseMapper<AdhUser> {
    
    @Select("  SELECT * FROM `adh_user` WHERE user_phone = #{phoneNumber} limit 1")
    public AdhUser getUserInfoByPhoneNumber(@Param("phoneNumber") String phoneNumber);

    @Select("  SELECT * FROM adh_user WHERE open_id = #{openId} limit 1")
    public AdhUser getUserInfoByOpenId(@Param("openId") String openId);
}
